/*     */ package com.umeng.newxp.controller;
/*     */ 
/*     */ import android.content.Context;
/*     */ import android.content.SharedPreferences;
/*     */ import android.content.SharedPreferences.Editor;
/*     */ import com.umeng.common.Log;
/*     */ import com.umeng.newxp.Promoter;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ 
/*     */ class c
/*     */   implements XpListenersCenter.ExchangeDataRequestListener
/*     */ {
/*     */   c(ExchangeDataService paramExchangeDataService, XpListenersCenter.ExchangeDataRequestListener paramExchangeDataRequestListener, boolean paramBoolean)
/*     */   {
/*     */   }
/*     */ 
/*     */   public void dataReceived(int paramInt, List<Promoter> paramList)
/*     */   {
/* 583 */     if (paramInt == 1) {
/* 584 */       this.b.dataReceived(paramInt, paramList);
/*     */ 
/* 586 */       a(this.c);
/*     */     } else {
/* 588 */       Log.c(ExchangeDataService.g(this.a), "Get from cache failed...");
/*     */ 
/* 592 */       d locald = new d(this, this.b, this.c);
/*     */ 
/* 601 */       new ExchangeDataService.a(this.a, locald, 0, null).start();
/*     */     }
/*     */   }
/*     */ 
/*     */   private void a(boolean paramBoolean)
/*     */   {
/*     */     Object localObject1;
/* 612 */     if (this.a.page_index > -1) {
/* 613 */       if (paramBoolean) {
/* 614 */         localObject1 = this.a.mContext.getSharedPreferences(
/* 615 */           ExchangeDataService.c(this.a), 0);
/*     */ 
/* 617 */         synchronized (localObject1) {
/* 618 */           SharedPreferences.Editor localEditor = ((SharedPreferences)localObject1).edit();
/* 619 */           localEditor.remove(ExchangeDataService.f(this.a));
/* 620 */           localEditor.commit();
/*     */         }
/*     */       }
/* 623 */       new ExchangeDataService.a(this.a, null, 0, null).start();
/*     */     }
/*     */ 
/* 627 */     if (paramBoolean) {
/* 628 */       localObject1 = ExchangeDataService.b(this.a);
/* 629 */       if (((Map)localObject1).containsKey("sid")) ((Map)localObject1)
/* 630 */           .remove("sid");
/* 631 */       new ExchangeDataService.a(this.a, null, 0, (Map)localObject1).start();
/*     */     }
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.newxp.controller.c
 * JD-Core Version:    0.6.2
 */